package com.tjetc.factory2;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.io.InputStream;

@NoArgsConstructor
@AllArgsConstructor
// 不同资源的抽象
public abstract class AbstractResource {

    private String url;

    protected void shared(){
        System.out.println("共享方法");
    }

    /**
     * 每个资源的获取方法不同
     * @return
     */
    public abstract InputStream getInputStream();

}
